package com.masterclient.app.modules.brand.grass.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eoner.baselibrary.bean.brand.BrandGrassSpecInfo;
import com.eoner.baselibrary.utils.ViewTransformUtil;
import com.masterclient.app.R;

public class BrandGrassSpecialAdapter extends BaseQuickAdapter<BrandGrassSpecInfo, BaseViewHolder> {

    public BrandGrassSpecialAdapter() {
        super(R.layout.item_brand_grass_special);
    }

    @Override
    protected void convert(BaseViewHolder helper, BrandGrassSpecInfo item) {
        helper.setText(R.id.tv_name, item.getName());
        ViewTransformUtil.glideImageView(mContext, item.getImageUrl(), (ImageView) helper.getView(R.id.iv_image), R.mipmap.defaults);
    }
}
